package offer;

import java.io.Serializable;
import java.math.BigDecimal;

import trader.Trader;

public class Offer implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4498950094212528725L;
	
	public enum TransactionType { BUY, SELL, ACCEPT, WITHDRAW }
	
	private Integer transID;
	
	private Trader trader;
	private String orename;
	private TransactionType transaction;
	private Integer oreQuantity;
	private BigDecimal price;
	

	public Offer()
	{
		
	}
	
	public Offer(Integer transID, Trader trader, String orename,
			TransactionType transaction, Integer oreQuantity, BigDecimal price)
	{
		this.transID = transID;
		this.trader = trader;
		this.orename = orename;
		this.transaction = transaction;
		this.oreQuantity = oreQuantity;
		this.price = price;
	}

	public Integer getTransID() {
		return transID;
	}

	public void setTransID(Integer transID) {
		this.transID = transID;
	}

	public Trader getTrader() {
		return trader;
	}

	public void setTrader(Trader trader) {
		this.trader = trader;
	}

	public String getOrename() {
		return orename;
	}

	public void setOrename(String orename) {
		this.orename = orename;
	}

	public TransactionType getTransaction() {
		return transaction;
	}

	public void setTransaction(TransactionType transaction) {
		this.transaction = transaction;
	}

	public Integer getOreQuantity() {
		return oreQuantity;
	}

	public void setOreQuantity(Integer oreQuantity) {
		this.oreQuantity = oreQuantity;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
}
